package com.yy.wga.order.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.wga.common.core.dto.PageBean;
import com.yy.wga.order.feign.request.OrderGoodsPageRequest;
import com.yy.wga.order.feign.response.OrderGoodsDetailResponse;
import com.yy.wga.order.feign.response.OrderGoodsPageResponse;
import com.yy.wga.order.service.pojo.OrderGoodsDO;

import java.util.List;

/**
 * 商品购买订单信息(OrderGoods)表服务接口
 *
 * @author guochao
 * @since 2024-10-26 10:34:33
 */
public interface OrderGoodsService extends IService<OrderGoodsDO> {

    /**
     * 分页
     * @param request
     * @return
     */
    PageBean<OrderGoodsPageResponse> pageData(OrderGoodsPageRequest request);

    /**
     * 获取详情
     * @param id
     * @return
     */
    OrderGoodsDetailResponse getDetail(Long id);

    /**
     * 查询商品列表
     * @param request
     * @return
     */
    List<OrderGoodsPageResponse> list(OrderGoodsPageRequest request);
}
